﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Algorithms;
using Arbore;
using Operators;
using Satates;

namespace PresentationWpf
{
    public class Context
    {
        private iStrategy _strategy;
        public Context(iStrategy strategy)
        {
            this._strategy = strategy;
        }

        public iStrategy Strategy
        {
            get { return _strategy; }
            set { this._strategy = value; }
        }
        public void executeStrategy(State iState, List<State> fStates, List<iOperator> opr, ref List<string> log, ref Arbore.Arbore Ab)
        {
            _strategy.execute(iState, fStates, opr, ref log,ref Ab);
        }
    }
}
 